//
//  BGView.h
//  ICE_Player
//
//  Created by xl on 11-6-23.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "ICE_View_Interface.h"
#import "Config_Btn_View.h"
#import "ConfigureView.h"
#import "FileListView.h"
#import "lock_btn.h"
#import "WIFI_BTN.h"
#import "MSG_BOX_View.h"
#import "PlayerViewController.h"
#import "Low_Wnd_View.h"
#import "Password_Text_Feiled.h"
#import "Password_Mgr.h"

@interface BGView : ICE_Image_View {

	FileListView* file_list_view;
	ConfigureView* configure_view;
	Config_Btn_View* configure_btn;
	
	WIFI_BTN* wifi_btn;
	MSG_BOX_View* msg_view;
	
	lock_btn* lock_files_btn;
    
    Low_Wnd_View* low_wnd;
    BOOL low_wnd_has_shrinked;
	
	PlayerViewController* player_view_controller;
    
    ICE_String* wifi_mb_title;
    ICE_String* wifi_mb_url;
    ICE_String* delete_mb_title;
    ICE_String* delete_mb_file_name;
    
    ICE_Hidable_Label_View* config_lb;
    ICE_Hidable_Label_View* wifi_lb;
    ICE_Hidable_Label_View* rotate_lb;
    
    UIView* psw_prt;
    ICE_Label_View* psw_lb;
    Password_Text_Feiled* psw_box;
    Password_Mgr* psw_mgr;
    
    BOOL should_msg_box_restore;
    BOOL should_low_wnd_restore;
    BOOL should_low_wnd_restore_from_wifi_view;
    BOOL should_low_wnd_restore_from_psw_view;
    
    BOOL is_lock_screen_disabled_before_enter_player;
}

@property (nonatomic, retain) IBOutlet FileListView* file_list_view;
@property (nonatomic, retain) IBOutlet ConfigureView* configure_view;
@property (nonatomic, retain) IBOutlet Config_Btn_View* configure_btn;

@property (nonatomic, retain) IBOutlet WIFI_BTN* wifi_btn;
@property (nonatomic, retain) IBOutlet MSG_BOX_View* msg_view;

@property (nonatomic, retain) IBOutlet lock_btn* lock_files_btn;

@property (nonatomic, retain) IBOutlet Low_Wnd_View* low_wnd;

@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* config_lb;
@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* wifi_lb;
@property (nonatomic, retain) IBOutlet ICE_Hidable_Label_View* rotate_lb;

@property (nonatomic, retain) IBOutlet UIView* psw_prt;
@property (nonatomic, retain) IBOutlet ICE_Label_View* psw_lb;
@property (nonatomic, retain) IBOutlet Password_Text_Feiled* psw_box;
@property (nonatomic, retain) IBOutlet Password_Mgr* psw_mgr;

@property (nonatomic, retain) IBOutlet PlayerViewController* player_view_controller;

+ (BGView*)get_Last_BG_view;

- (IBAction)On_Call_Cfg_View:(id)sender;
- (IBAction)On_Leave_Cfg_View:(id)sender;

- (IBAction)On_Call_WIFI_View:(id)sender;
- (IBAction)On_Leave_WIFI_View:(BOOL)result;

- (void)On_Call_Player_View:(char*)url;
- (IBAction)On_Leave_Player_View:(id)sender;

- (void)On_Shrink_In_List_View;
- (void)On_Shrink_Out_List_View;
- (void)On_Show_Low_Wnd:(char*)url;
- (void)On_Leave_Low_Wnd;

- (void)On_Leave_Delete_File_View:(BOOL)result;
- (IBAction)On_Call_Delete_File_View:(id)sender;

- (void)On_Call_Passwords_View:(BOOL)lock;
- (void)On_Confirmed_Passwords;
- (void)On_Wrong_Passwords;
- (void)On_leave_Passwords_View;

- (void)On_Leave_Change_Psw_MB:(BOOL)result;
- (void)On_Call_Change_Psw_MB;
- (void)On_leave_Psw_Confirm_MB:(BOOL)result;
- (void)On_Call_Psw_Confirm_MB:(NSString*)passwords;

- (void)On_Hide_All_Controls;
- (void)On_Display_All_Controls;

@end
